package com.glela.live.messages;

import com.glela.live.util.GsonUtil;

public class JoinMessage extends BaseMessage{
    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    private transient static final String TYPE = "XP:JoinMsg";

    public JoinMessage(User user){
        this.user=user;
    }
    @Override
    public String getType() {
        return TYPE;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, JoinMessage.class);
    }

    private int showFlag=1;

    public int getShowFlag() {
        return showFlag;
    }
}
